10810f00d490fdae35cdcff6f1a132d7c21c4816,src/main/java/org/elasticsearch/index/search/slowlog/ShardSlowLogSearchService.java,ShardSlowLogSearchService,ShardSlowLogSearchService,#ShardId#Settings#IndexSettingsService#,123

Before Change



        this.reformat = componentSettings.getAsBoolean("reformat", true);

        this.queryWarnThreshold = componentSettings.getAsTime("threshold.query.warn", TimeValue.timeValueNanos(-1)).nanos();
        this.queryInfoThreshold = componentSettings.getAsTime("threshold.query.info", TimeValue.timeValueNanos(-1)).nanos();
        this.queryDebugThreshold = componentSettings.getAsTime("threshold.query.debug", TimeValue.timeValueNanos(-1)).nanos();
        this.queryTraceThreshold = componentSettings.getAsTime("threshold.query.trace", TimeValue.timeValueNanos(-1)).nanos();

        this.fetchWarnThreshold = componentSettings.getAsTime("threshold.fetch.warn", TimeValue.timeValueNanos(-1)).nanos();
        this.fetchInfoThreshold = componentSettings.getAsTime("threshold.fetch.info", TimeValue.timeValueNanos(-1)).nanos();
        this.fetchDebugThreshold = componentSettings.getAsTime("threshold.fetch.debug", TimeValue.timeValueNanos(-1)).nanos();
        this.fetchTraceThreshold = componentSettings.getAsTime("threshold.fetch.trace", TimeValue.timeValueNanos(-1)).nanos();

After Change



        this.reformat = componentSettings.getAsBoolean("reformat", true);

        this.queryWarnThreshold = parseTimeSetting("threshold.query.warn", -1);
        this.queryInfoThreshold = parseTimeSetting("threshold.query.info", -1);
        this.queryDebugThreshold = parseTimeSetting("threshold.query.debug", -1);
        this.queryTraceThreshold = parseTimeSetting("threshold.query.trace", -1);

        this.fetchWarnThreshold = parseTimeSetting("threshold.fetch.warn", -1);
        this.fetchInfoThreshold = parseTimeSetting("threshold.fetch.info", -1);
        this.fetchDebugThreshold = parseTimeSetting("threshold.fetch.debug", -1);
        this.fetchTraceThreshold = parseTimeSetting("threshold.fetch.trace", -1);